import request from '@/utils/request'

// 查询处方明细列表
export function listPrescriptionDetail(query) {
  return request({
    url: '/hospital/PrescriptionDetail/list',
    method: 'get',
    params: query
  })
}

// 查询处方明细详细
export function getPrescriptionDetail(id) {
  return request({
    url: '/hospital/PrescriptionDetail/' + id,
    method: 'get'
  })
}

// 新增处方明细
export function addPrescriptionDetail(data) {
  return request({
    url: '/hospital/PrescriptionDetail',
    method: 'post',
    data: data
  })
}

// 修改处方明细
export function updatePrescriptionDetail(data) {
  return request({
    url: '/hospital/PrescriptionDetail',
    method: 'put',
    data: data
  })
}

// 删除处方明细
export function delPrescriptionDetail(id) {
  return request({
    url: '/hospital/PrescriptionDetail/' + id,
    method: 'delete'
  })
}
